package br.com.financas.abstractions;

import java.util.List;

import javax.persistence.EntityManager;

import br.com.financas.util.JPAUtil;

public interface IBaseService<T> {
	EntityManager manager = JPAUtil.getEntityManager();
	
	String validaInserir(T entity) throws Exception;
	boolean validaDeletar(T entity) throws Exception;
	String validaAtualizar(T entity);
	List<T> obterTodos();

}
